<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">Bienvenue sur l'interface de gestion des commandes de l'application Orderoid.</ui:define>
        <ui:define name="body">
            <h:panelGroup styleClass="accueil" layout="block">
                <h2>Statistiques du <h:outputText value="#{commandeController.getDateJour()}"/></h2> <br />
                <h:panelGroup>
                    <h:panelGrid columns="2">
                        <h:outputText value="#{bundle.IndexLabel_totalcommandesencours}"/>
                        <h:outputText value="#{commandeController.getTotalCommandesEnCours()}"/>
                        <h:outputText value="#{bundle.IndexLabel_totalcommandesfinis}"/>
                        <h:outputText value="#{commandeController.getTotalCommandesFinis()}"/>
                        <h:outputText value="#{bundle.IndexLabel_totalcommandes}"/>
                        <h:outputText value="#{commandeController.getTotalCommandes()}"/>
                    </h:panelGrid>
                </h:panelGroup>
                <br /><br />
                <h:panelGroup>
                    <h:panelGrid columns="2">
                        <h:outputText value="#{bundle.IndexLabel_caeffectif}"/>
                        <h:outputText value="#{commandeController.getCAeffectif()} €"/>
                        <h:outputText value="#{bundle.IndexLabel_caprevisionnel}"/>
                        <h:outputText value="#{commandeController.getCAprevisionnel()} €"/>
                        <h:outputText value="#{bundle.IndexLabel_totalca}"/>
                        <h:outputText value="#{commandeController.getCAtotal()} €"/>
                    </h:panelGrid>
                </h:panelGroup>
            </h:panelGroup>
            <br />
        </ui:define>
    </ui:composition>
</html>
